Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Part of #4938: Introduce Onboarding UI V2 2 of 3 #5327

Closed
wants to merge 58 commits into from

Conversation

adhiamboperes
Copy link
Collaborator

@adhiamboperes adhiamboperes commented Jan 31, 2024

Explanation

Fix Part of #4938: Intoduce the UI for the revised onboarding flow.

  • Learner-specific onboarding flow triggered upon a user opening the app for the first time.
  • When a user selects "learner" in the new onboarding flow, they will be directed to the "new learner" onboarding flow.
  • When a user selects "parent/teacher" in the new onboarding flow, they are directed to the profile selection screen showing the default-created admin.
  • Selection functionality for the user's app & audio languages.
  • Darkmode compliance
  • Tablet device responsiveness
  • Landscape orientation responsiveness
  • Re-used classes and resources where possible
  • Enforced resource and id naming patterns.

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

Mobile

Light Mode Dark Mode Landscape
Screenshot_1707755141 Screenshot_1707784812 Screenshot_1708096789
Screenshot_1707755148 Screenshot_1707785406 Screenshot_1708100079
Screenshot_1707755160 Screenshot_1707786309 Screenshot_1708115546
Screenshot_1707755167 Screenshot_1708115582 Screenshot_1708115546
Screenshot_1707821621 Screenshot_1708085950 Screenshot_1708119594
Screenshot_1707755340 Screenshot_1707786624 Screenshot_1708121238

Tablet

Portrait Landscape
Screenshot_1708083641 Screenshot_1708083659
Screenshot_1708083674 Screenshot_1708083682
Screenshot_1708083702 Screenshot_1708083708
Screenshot_1708084156 Screenshot_1708084186
Screenshot_1708085770 Screenshot_1708085788

@adhiamboperes adhiamboperes self-assigned this Jan 31, 2024
@adhiamboperes adhiamboperes requested review from a team as code owners January 31, 2024 20:36
@adhiamboperes adhiamboperes requested review from BenHenning and removed request for a team January 31, 2024 20:36
@adhiamboperes adhiamboperes changed the title Fix Part of #4938: Introduce Onboarding UI V2 Fix Part of #4938: Introduce Onboarding UI V2 2 of 3 Jan 31, 2024
Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First self-review pass.

app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
scripts/assets/test_file_exemptions.textproto Outdated Show resolved Hide resolved
scripts/assets/kdoc_validity_exemptions.textproto Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second self-review pass.

Copy link

oppiabot bot commented Mar 5, 2024

Hi @adhiamboperes, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Mar 5, 2024
@oppiabot oppiabot bot closed this Mar 12, 2024
@adhiamboperes adhiamboperes reopened this Mar 13, 2024
@oppiabot oppiabot bot removed the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Mar 13, 2024
Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another self-review pass. Some refactors and failing test fixes needed.

forceEnableOnboardingFlowV2()
launchActivityWithLanguage(ENGLISH_AUDIO_LANGUAGE).use {
testCoroutineDispatchers.runCurrent()
onView(withId(R.id.audio_language_dropdown_background)).check(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to assert actual language. Ditto other tests

onView(withId(R.id.onboarding_navigation_continue))
.perform(click())
testCoroutineDispatchers.runCurrent()
intended(hasComponent(OnboardingLearnerIntroActivity::class.java.name))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for nichname in intent

intended(hasComponent(HomeActivity::class.java.name))
}
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add checks for the rest of the views' visibility

Copy link

oppiabot bot commented Mar 26, 2024

Hi @adhiamboperes, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Mar 26, 2024
@oppiabot oppiabot bot closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Corresponds to items that haven't seen a recent update and may be automatically closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant